package com.management.po;

import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @author ls
 * @category 订单表类
 */
    public class OrderForm {
    /**
     * 订单编号
     */
    private String orderFormId;
    /**
     * 公司编号
     */
    private int companyId;
    /**
     * 当前负责人
     */
    private int userId;
    /**
     * 订单日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date orderFormDate;
    /**
     * 交货日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deliveryDate;
    /**
     * 单据状态
     */
    private int formStatsId;
    /**
     * 货款
     */
    private double orderMoney;
    /**
     * 客户姓名
     */
    private String clientName;
    /**
     * 客户电话
     */
    private String clientTel;
    /**
     * 收货地址
     */
    private String clientSite;
    /**
     * 流程记录信息
     */
    private String orderFormRecord;
    /**
     * 备注
     */
    private String orderFormNote;

    @Override
    public String toString() {
        return "OrderForm{" +
                "orderFormId='" + orderFormId + '\'' +
                ", companyId=" + companyId +
                ", userId=" + userId +
                ", orderFormDate=" + orderFormDate +
                ", deliveryDate=" + deliveryDate +
                ", formStatsId=" + formStatsId +
                ", orderMoney=" + orderMoney +
                ", clientName='" + clientName + '\'' +
                ", clientTel='" + clientTel + '\'' +
                ", clientSite='" + clientSite + '\'' +
                ", orderFormRecord='" + orderFormRecord + '\'' +
                ", orderFormNote='" + orderFormNote + '\'' +
                '}';
    }

    public OrderForm() {
    }

    public OrderForm(String orderFormId, int companyId, int userId, Date orderFormDate, Date deliveryDate, int formStatsId, double orderMoney, String clientName, String clientTel, String clientSite, String orderFormRecord, String orderFormNote) {
        this.orderFormId = orderFormId;
        this.companyId = companyId;
        this.userId = userId;
        this.orderFormDate = orderFormDate;
        this.deliveryDate = deliveryDate;
        this.formStatsId = formStatsId;
        this.orderMoney = orderMoney;
        this.clientName = clientName;
        this.clientTel = clientTel;
        this.clientSite = clientSite;
        this.orderFormRecord = orderFormRecord;
        this.orderFormNote = orderFormNote;
    }

    public String getOrderFormId() {
        return orderFormId;
    }

    public void setOrderFormId(String orderFormId) {
        this.orderFormId = orderFormId;
    }

    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyId) {
        this.companyId = companyId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getOrderFormDate() {
        return orderFormDate;
    }

    public void setOrderFormDate(Date orderFormDate) {
        this.orderFormDate = orderFormDate;
    }

    public Date getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public int getFormStatsId() {
        return formStatsId;
    }

    public void setFormStatsId(int formStatsId) {
        this.formStatsId = formStatsId;
    }

    public double getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(double orderMoney) {
        this.orderMoney = orderMoney;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getClientTel() {
        return clientTel;
    }

    public void setClientTel(String clientTel) {
        this.clientTel = clientTel;
    }

    public String getClientSite() {
        return clientSite;
    }

    public void setClientSite(String clientSite) {
        this.clientSite = clientSite;
    }

    public String getOrderFormRecord() {
        return orderFormRecord;
    }

    public void setOrderFormRecord(String orderFormRecord) {
        this.orderFormRecord = orderFormRecord;
    }

    public String getOrderFormNote() {
        return orderFormNote;
    }

    public void setOrderFormNote(String orderFormNote) {
        this.orderFormNote = orderFormNote;
    }
}
